import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(-10, 10, 1000)
y = np.sin(x)

plt.figure(figsize=(4, 2), dpi=100)
plt.plot(x, y)
plt.show()